// Package __queue_practice 1-offer-9
// @Title __queue_practice
// @Description 请使用两个栈实现一个队列
// @Author  == 琳琳也叫王木木 ==  2021/9/22 11:32
// @Create  2021/9/22 11:32
package __queue_practice

type CQueue struct {
	stack1 []int
	stack2 []int
}

func Constructor() CQueue {
	return CQueue{}
}

func (this *CQueue) AppendTail(value int) {
	this.stack1 = append(this.stack1, value)
	this.stack2 = append(this.stack2, value)
}

func (this *CQueue) DeleteHead() int {
	if len(this.stack1) < 1 {
		return -1
	}
	return 1
}
